using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.IO;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Framework.Library.Utilities;
using Framework.Module.CMS.Library;
using Framework.Module.CMS.Library.Contents;
using Framework.Module.CMS.Library.Distributions;
using Framework.Module.CMS.Library.Events;
using Framework.Module.CMS.Library.Zones;


namespace Framework.Module.CMS.Web.HomePage
{
    public partial class SiteMap : CMSWebControl
    {
        
        protected string zoneurl = "";
        protected string zonename = "";

        private string GetZoneName(int ID)
        {
            ZoneInfo info = ZoneController.ZoneInfo(ID);
            string _return = "";
            if (info.Zone_ParentID != 0)
            {
                _return += GetZoneName(info.Zone_ParentID) + " &raquo; ";
            }
            _return += info.Zone_Name;
            return _return;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //this.zoneurl = this.BuildUrlByZone(this.curZone.Zone_ID, this.curZone.Portal_TabControlID);
                //this.zonename = this.curZone.Zone_Name;
                //hplMap.Text = string.Empty;
                ZoneInfo info = ZoneController.ZoneInfo(Convert.ToInt32(curZone.Zone_ID));
                hplMap.Text = this.GetZoneName(Convert.ToInt32(curZone.Zone_ID));
                //hplMap.NavigateUrl = BuildUrlByZone(Convert.ToInt32(this.curZone.Zone_ID), this.curZone.Portal_TabControlID);
                
            }
        }
    }
}


